package com.zzyang.aop.demo.rpc.producer;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import java.util.Scanner;

/**
 * 式例
 *
 * @author zhuoziyang
 * @date 2021/5/19 22:33
 */
@ComponentScan("com.zzyang.aop.demo.rpc.producer")
public class ProducerDemo {
    public static void main(String[] args) throws Exception{
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(ProducerDemo.class);
        applicationContext.refresh();

        new ProducerNettyServer(applicationContext).start();
    }

}
